<%@ page language="java" import="java.util.*,com.knife.member.*" pageEncoding="UTF-8"%>
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);

Userinfo auser=null;
String login_email="";
String login_acount="";
if(request.getCookies()!=null){
	Cookie[] allCookie = request.getCookies();
	for(int i=0;i<allCookie.length;i++){
		if(allCookie[i].getName().equals("loginuser")){
			login_email=allCookie[i].getValue();
		}
	}
}
String url="";
if(request.getParameter("url")!=null){
	url=request.getParameter("url");
	//session.setAttribute("url",url);
	if(url.indexOf("/")!=0){
		url="";
	}
}

//生成时间戳
Date date = new Date();
long time = date.getTime();
String dateline = time + "";
dateline = dateline.substring(0, 10);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>用户登陆</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	</head>
	

<body>
        <%if(login_email.length()<=0){%>
				<a href="/user/login.jsp"><img src="/skin/images/login.png" /></a>
        <%}%>
				<%if(login_email.length()>0){%>
				<a style="color:#FFF" href="/user/index.jsp">CPT平台</a> <font color="white">|</font> <a style="color:#FFF" href="/user/opt/userlogout.jsp">退出</a>
				<%}%>
				
</body>
</html>